import Layout from '@/layout'

const system = {
  path: '/system',
  component: Layout,
  meta: { title: '设置' },
  children: [
    {
      path: '/Plugin/index',
      name: 'Plugin',
      component: () => import('@/views/system/plugin.vue'),
      meta: { title: '插件管理', name: '1' }
    },
    {
      path: 'index',
      component: () => import('@/views/system/index'), // Parent router-view
      meta: { title: 'SEO', name: '1' },
      children: [
        {
          path: '/Nav/index',
          name: 'navMenu',
          component: () => import('@/views/system/navMenu/index'),
          meta: { title: '菜单列表', name: '1' }
        },
        {
          path: '/Admin/index',
          name: 'Admin',
          component: () => import('@/views/system/account/admin'),
          meta: { title: '管理员管理', name: '1' }
        },
        {
          path: '/SysSetting/index',
          name: 'SysSetting',
          component: () => import('@/views/system/sysSetting'),
          meta: { title: '系统设置', name: '1' }
        },
        {
          path: '/Role/index',
          name: 'Role',
          component: () => import('@/views/system/account/role'),
          meta: { title: '角色管理', name: '1' }
        },
        {
          path: '/RecycleBin/index',
          name: 'RecycleBin',
          component: () => import('@/views/system/recycleBin'),
          meta: { title: '回收站管理', name: '1' }
        },
        {
          path: '/Database/index',
          name: 'Database',
          component: () => import('@/views/system/database'),
          meta: { title: '数据库备份', name: '1' }
        }
      ]
    },

    {
      path: 'record',
      name: 'record',
      component: () => import('@/views/system/record/index'),
      meta: { title: '日志管理' },
      children: [
        {
          path: '/AdminLoginLog/index',
          name: 'LoginLog',
          component: () => import('@/views/system/record/loginLog'),
          meta: { title: '登录日志', name: '1' }
        },
        {
          path: '/AdminOptLog/index',
          name: 'OperationLog',
          component: () => import('@/views/system/record/operationLog'),
          meta: { title: '操作日志', name: '1' }
        }
      ]
    }
    // {
    //   path: '/user',
    //   component: () => import('@/views/user/index'),
    //   name: 'user',
    //   meta: { title: '会员管理', icon: 'el-icon-s-help' },
    //   children: [
    //     {
    //       path: '/UserGroup/index',
    //       name: 'userGroup',
    //       component: () => import('@/views/user/group'),
    //       meta: { title: '会员分类', icon: 'icon-zhiweiguanli', name: '171' }
    //     },
    //     {
    //       path: '/User/index',
    //       name: 'userList',
    //       component: () => import('@/views/user/list'),
    //       meta: { title: '会员列表', icon: 'icon-zhiweiguanli', name: '171' }
    //     },
    //     {
    //       path: '/UserGrade/index',
    //       name: 'userGrade',
    //       component: () => import('@/views/user/grade'),
    //       meta: { title: '会员等级', icon: 'icon-zhiweiguanli', name: '171' }
    //     },
    //     {
    //       path: '/UserLoginLog/index',
    //       name: 'userloginLog',
    //       component: () => import('@/views/user/loginLog'),
    //       meta: { title: '登录日志', icon: 'icon-chengshiguanli', name: '171' }
    //     }
    //   ]
    // }
    // {
    //   path: '/assets',
    //   component: () => import('@/views/assets/index'),
    //   name: 'assets',
    //   meta: { title: '知产管理' },
    //   children: [
    //     {
    //       path: '/Domain/index',
    //       name: 'domain',
    //       component: () => import('@/views/assets/domain'),
    //       meta: { title: '域名管理', name: '171' }
    //     },
    //     {
    //       path: '/Server/index',
    //       name: 'server',
    //       component: () => import('@/views/assets/server'),
    //       meta: { title: '主机管理', name: '171' }
    //     },
    //     {
    //       path: '/Trademark/index',
    //       name: 'trademark',
    //       component: () => import('@/views/assets/trademark'),
    //       meta: { title: '商标管理', name: '171' }
    //     },
    //     {
    //       path: '/AddTrademark/index',
    //       name: 'addTrademark',
    //       component: () => import('@/views/assets/trademark/EditTrademark'),
    //       meta: { title: '商标管理', name: '171' }
    //     },
    //     {
    //       path: '/Copyright/index',
    //       name: 'copyright',
    //       component: () => import('@/views/assets/copyright'),
    //       meta: { title: '版权管理', name: '171' }
    //     },
    //     {
    //       path: '/AddCopyright/index',
    //       name: 'addCopyright',
    //       component: () => import('@/views/assets/copyright/EditCopyright'),
    //       meta: { title: '版权管理', name: '171' }
    //     },
    //     {
    //       path: '/Soft/index',
    //       name: 'soft',
    //       component: () => import('@/views/assets/soft'),
    //       meta: { title: '软著管理', name: '171' }
    //     },
    //     {
    //       path: '/EditSoft/index',
    //       name: 'editSoft',
    //       component: () => import('@/views/assets/soft/editSoft'),
    //       meta: { title: '软著管理', name: '171' }
    //     }
    //   ]
    // }
  ]
}
export default system
